{template 'common/header'}
<script src="/addons/hc_pdd/template/js/color.js"></script>
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('setting')}">基础设置</a></li>
	<li><a href="{php echo $this->createWebUrl('guanzhu')}">关注设置</a></li>
	<li><a href="{php echo $this->createWebUrl('shenhe')}">审核设置</a></li>
	<li><a href="{php echo $this->createWebUrl('ad')}">流量主设置</a></li>
	<li><a href="{php echo $this->createWebUrl('poster')}">海报设置</a></li>
    <li><a href="{php echo $this->createWebUrl('message')}">模板消息</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('signin')}">签到设置</a></li>
    <li><a href="{php echo $this->createWebUrl('settime')}">定时任务</a></li>
    <li><a href="{php echo $this->createWebUrl('notice')}">公告设置</a></li>
    <li><a href="{php echo $this->createWebUrl('centerdiy')}">个人中心</a></li>
    <li><a href="{php echo $this->createWebUrl('api')}">接口设置</a></li>
    <li><a href="{php echo $this->createWebUrl('others')}">其他设置</a></li>
</ul>
<div class="clearfixcon">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="form1" style="display: block">
		<div class="panel panel-default con" id="tab3">
			<div class="panel-body">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启签到</label>
                <div class="col-sm-9 col-xs-12" id="qie2">
                <label class="radio-inline">
                   <input type="radio" name="is_qian" {if $info['is_qian'] == 0} checked {/if} value="0">不开启
                </label>
                <label class="radio-inline">
                   <input type="radio" name="is_qian" {if $info['is_qian'] == 1} checked {/if} value="1">开启
                </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">每日签到分享后奖励步数币</label>
                <div class="col-sm-9">
                    <input class='form-control' name='signsharemoney' value='{$info["signsharemoney"]}'>
                    <div style="color: red !important;">例：2</div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">首页“签到”文字</label>
                <div class="col-sm-4">
                    <input class='form-control' name='signtext' value='{$info["signtext"]}'>
                    <div style="color: red !important;">例：签到。建议四字以内</div>
                </div>
                <div class="col-sm-6">
                    {php echo tpl_form_field_color('signtextcolor', $value = $info['signtextcolor'])}
                    <span class="help-block"></span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">首页签到小图标</label>
                <div class="col-sm-9">
                    {php echo tpl_form_field_image('signicon',$info['signicon'])}
                    <div style="color: red !important;">建议比例：50*50</div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">每日签到弹窗背景图</label>
                <div class="col-sm-9">
                    {php echo tpl_form_field_image('signpic',$info['signpic'])}
                    <div style="color: red !important;">建议比例：792*860</div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享按钮文字</label>
                <div class="col-sm-9">
                    <input class='form-control' name='signsharetext' value='{$info["signsharetext"]}'>
                    <div style="color: red !important;">例：分享好友领取2个燃力币</div>
                </div>
            </div>
        </div>
		</div>
		<div class="form-group col-sm-12">
			<input name="submit" type="submit" value="提交" class="btn btn-primary col-lg-1" {if $update_status == 1}disabled{/if}>
			<input type="hidden" name="act" value="add" />
		</div>
	</form>
</div>



<!-- <script>

	$(document).ready(function(){
		$(".nav-tabs li:first").addClass("active")
		$(".con").hide()
		$(".con:first").show()
		$(".nav-tabs li").click(function(){
			$(".nav-tabs li").removeClass("active")
			$(this).addClass("active")
			$(".con").hide()
			var href=$(this).find("a").attr("href")
			$(href).fadeIn()
			return false
		})
	})
	$('#form1').submit(function() {

	});

	function closeWindow(url) 
	{ 
		var iWidth=300;//弹出窗口的宽度; 
        var iHeight=150;//弹出窗口的高度; 
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置
        myWindow = window.open(url,"myWindow",'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no'); 
		//myWindow.document.write("运行中，请稍后...");
		//window.opener=null; 
		window.setTimeout(function(){
			myWindow.close();
			location.href="{php echo $this->createWebUrl('setting')}"
		}, 1000); 

	} 
</script> -->

{template 'common/footer'}